package com.lifp.schedule;

import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * @Description TODO
 * @Author lfp
 * @Version 1.0
 */

@Component
@Slf4j
public class ScheduleJob {

    @Scheduled(cron = "0/2 * * * * ?")
    public void doSomeThing(){
        log.info("任务已执行......");
    }
}
